package com.sptpc.stu.repository;

import com.sptpc.stu.model.Student;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface StudentRepository extends JpaRepository<Student, Long> {

    Page<Student> findStudentsPageByNameLikeAndGender(String name, Boolean gender, Pageable pageable);
    Page<Student> findStudentsPageByNameLike(String name, Pageable pageable);
    Page<Student> findStudentsPageByGender(Boolean gender, Pageable pageable);
//    Page<Student> findStudentsByCompany

}
